package org.br.plotter.functions;

public class ConstFunction extends Function {
	private double value;

	public ConstFunction(double value) {
		this.value = value;
	}

	public ConstFunction(String str) {
		java.util.Locale.setDefault(java.util.Locale.US);
		this.value = Double.parseDouble(str);
	}

	public double eval(double x) {
		return value;
	}

}